package my.framework.service.impl;

import my.framework.comm.MybatisUtils;
import my.framework.entity.Auction;
import my.framework.mapper.AuctionMapper;
import my.framework.service.IAuctionService;

import java.util.List;

/**
 * @author:雷淑娥
 * @Date:2024/12/16 9:04
 * version:1.0
 */
public class AuctionServiceImpl implements IAuctionService {
    AuctionMapper auctionMapper = MybatisUtils.getMapper(AuctionMapper.class,true);
    @Override
    public int getCount(Auction auction) {
        return auctionMapper.getCount(auction);
    }

    @Override
    public List<Auction> getPageList(Auction auction, int pageBegin, int pageSize) {
        return auctionMapper.getPageList(auction, (pageBegin-1)*pageSize, pageSize);
    }
}
